package May;

import java.util.Scanner;

public class Test02CompareNum {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        System.out.println("请分别输入三个数字，我将找出里面最大的那个数字和最小的那个数字");
        int a = sc.nextInt();
        int b = sc.nextInt();
        int c = sc.nextInt();
        int result = a > b ? a : b;
        int result_max = result > c ? result : c;
        int result2 = a < b ? a : b;
        int result_min = result2 < c ? result2 : c;
        System.out.println("最大值是：" + result_max + "最小值是：" + result_min);
    }
}
